package cn.seecoder.courselearning.service.post;

import cn.seecoder.courselearning.po.post.Post;
import cn.seecoder.courselearning.vo.ResultVO;
import cn.seecoder.courselearning.vo.post.PostVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface PostService {
    //发布帖子
    ResultVO<PostVO> createPost(PostVO postVO);
    //查看帖子列表:根据发表时间，分页查询
    PageInfo<PostVO> getPostByPostTime(Integer currPage, Integer pageSize, Integer uid, Integer courseId);

    //查看帖子列表:根据最新回复时间，分页查询
    PageInfo<PostVO> getPostByLastReplyTime(Integer currPage, Integer pageSize, Integer uid, Integer courseId);
      //查询单个帖子
    ResultVO<PostVO> getPost(Integer postId,Integer uid);

    Integer findUserIdByPostId(Integer postId);

    boolean getPriority(Integer uid,Integer courseId);


}
